<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Register</title>
<style type="text/css">
	.error {
		color: red;
	}
	.container {
	margin: 80px auto;
	width: 60%;
	background-color: lightcyan;
}
</style>
</head>
<body>
	<div class="container">
	<h1>Register Form</h1>
	<form:form action="register" method="POST" modelAttribute="user" id="formRegister">
		<table>
			<tr>
				<td><spring:message code="lang.lang" /></td>
				<td colspan="2"> <a href="?lang=en">English</a>| <a href="?lang=vi">Việt Nam</a></td>
			<tr>
				<td><label><spring:message code="register.loginId" /></label></td>
				<td><form:input path="loginId" /></td>
				<td><form:errors path="loginId" cssClass="error" /></td>
			</tr>
			<tr>
				<td><label><spring:message code="register.firstName"/></label></td>
				<td><form:input path="firstName" /></td>
				<td><form:errors path="firstName" cssClass="error" /></td>
			</tr>
			<tr>
				<td><label><spring:message code="register.lastName" /></label></td>
				<td><form:input path="lastName" /></td>
				<td><form:errors path="lastName" cssClass="error" /></td>
			</tr>
			<tr>
				<td><label><spring:message code="register.password" /></label></td>
				<td><form:password path="password" /></td>
				<td><form:errors path="password" cssClass="error" /></td>
			</tr>
			<tr>
				<td><label><spring:message code="register.idCardNumber" /></label></td>
				<td><form:input path="idCardNumber" /></td>
				<td><form:errors path="idCardNumber" cssClass="error" /></td>
			</tr>
			<tr>
				<td><label><spring:message code="register.email" /></label></td>
				<td><form:input path="email" /></td>
				<td><form:errors path="email" cssClass="error" /></td>
			</tr>
			<tr>
				<td></td>
				<td colspan="2"><input type="submit" value="Register"/></td>
			</tr>
		</table>
	</form:form>
	
	
	</div>
	
</body>
</html>